package cn.com.surker.base.strength.dao;

import cn.com.surker.base.strength.entity.BaseStrengthLevelDosage;
import cn.com.surker.base.strength.vo.StrengthLevelDosageVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 强度等级容重区间表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2025-01-13
 */
public interface BaseStrengthLevelDosageDao extends BaseMapper<BaseStrengthLevelDosage> {

    /**
     * 查询基础标号容重区间值
     * @param orgId
     * @param type
     * @return
     */
    List<StrengthLevelDosageVo> findDosageVo(Long orgId, Integer type);

    /**
     * 查询容重预计区间值是否存在
     * @param orgId
     * @param strengthId
     * @return
     */
    BaseStrengthLevelDosage findExistDosage(Long orgId, Long strengthId);

    Integer saveBatch(List<BaseStrengthLevelDosage> list);

    /**
     * 根据标号ID查询容重区间
     * @param orgId
     * @param strengthId
     * @return
     */
    BaseStrengthLevelDosage findStrengthId(Long orgId, Long strengthId);

}
